Global Index
HTML5 JS API Index > WebRTC Tutorials & Specs

RTCOfferOptions

Extends RTCOfferAnswerOptions.

This type represents a collection of object properties and does not have an explicit JavaScript representation.

Properties
boolean
iceRestart = false
When the value of this dictionary member is true, the generated description will have ICE credentials that are different from the current credentials (as visible in the localDescription attribute's SDP). Applying the generated description will restart ICE.
long
offerToReceiveAudio
In some cases, an RTCPeerConnection may wish to receive audio but not send any audio. The RTCPeerConnection needs to know if it should signal to the remote side whether it wishes to receive audio. This option allows an application to indicate its preferences for the number of audio streams to receive when creating an offer.
long
offerToReceiveVideo
In some cases, an RTCPeerConnection may wish to receive video but not send any video. The RTCPeerConnection needs to know if it should signal to the remote side whether it wishes to receive video or not. This option allows an application to indicate its preferences for the number of video streams to receive when creating an offer.
boolean
voiceActivityDetection = true
Many codecs and system are capable of detecting "silence" and changing their behavior in this case by doing things such as not transmitting any media. In many cases, such as when dealing with sounds other than spoken voice or emergency calling, it is desirable to be able to turn off this behavior.
Referenced by
RTCPeerConnectioncreateOffer(...)